package china.school.advised;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

// 第一个拦截器实现
class MyMethodInterceptor implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("MyMethodInterceptor 前置处理");
		Object result = invocation.proceed();
		System.out.println("MyMethodInterceptor 后置处理");
		return result;
	}
}